var property = require("./12_property");
var getLength = property("length");
var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;

function isArrayLike(collection) {
  var length = getLength(collection);
  return typeof length === "number" && length > 0 && length < MAX_ARRAY_INDEX;
}

module.exports = isArrayLike;
